import request from '@/utils/request'


export function getRequestRegistry(id) {
  return request({
    url: '/registration/' + id,
    method: 'get'
  })
}
export function getRoleList(){
  return request({
    url: '/registration/roleList',
    method: 'get'
  })
}
export function listRequestRegistry(query) {
  return request({
    url: '/registration/requestRegistry/list',
    method: 'get',
    params:query
  })
}
export function approveRequest(data) {
  return request({
    url: '/registration/approve',
    method: 'put',
    data:data
  })
}
export function rejectRequest(data) {
  return request({
    url: '/registration/reject',
    method: 'put',
    data:data
  })
}
export function submitRequestRegistry(data) {
  return request({
    url: '/registration/submit',
    method: 'post',
    data:data,
    headers:{
      isToken:false
    }
  })
}
